require.config({
    baseUrl: '',
    paths: {
        pubsub: 'lib/pubsub'
    }
});

require([
        'pubsub',
        'src/a',
        'src/b'
    ],
    function (pubsub, a, b) {
        pubsub.subscribe('news', function (event, data) {
            console.log(event);
            console.log(data.msg);
        });
        b();
    }
);

